package com.maozzi.api.auth.anotation;

import java.lang.annotation.*;

/**
 * @author maozi
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequirePermissions {
    /**
     * 权限码
     */
    String[] code() default {};

    /**
     * 角色
     */
    String[] role() default {};
}
